<HTML><HEAD><TITLE>DomIterator.js</TITLE></HEAD><BODY>
<A NAME="_top_"></A><PRE><A HREF="index.html">Index Files</A> </PRE><HR/>
<H1>File DomIterator.js</H1>
 Provides a class based on Iterator design pattern used to provide  abstraction from DOM elements. <P><DL><DT><B>Author:</B></DT><DD>Carlos Eduardo Goncalves</DD></DL></P>
<HR/>
<A HREF=#DomIterator>DomIterator</A><BR/>
<A HREF=#DomIterator.prototype.doc>DomIterator.prototype.doc</A><BR/>
<A HREF=#DomIterator.prototype.applyValue>DomIterator.prototype.applyValue</A><BR/>
<A HREF=#DomIterator.prototype.getFormById>DomIterator.prototype.getFormById</A><BR/>
<A HREF=#DomIterator.prototype.getFormByName>DomIterator.prototype.getFormByName</A><BR/>
<HR/>
<A NAME=DomIterator></A>
<H2>Constructor DomIterator</H2><PRE>function DomIterator(doc)</PRE> <p>Document object model iterator constructor.</p> <P><TABLE WIDTH="90%" BORDER=1><TR BGCOLOR=#BDB3C4><TD><B>Parameter</B></TD><TD><B>Description</B></TD></TR><TR><TD><I>doc</I></TD><TD>Document used to iterate in.</TD></TR></TABLE></P><BR/><BR/>
<A NAME=DomIterator.prototype.doc></A>
<H2> Attribute DomIterator.prototype.doc</H2><PRE>DomIterator.prototype.doc</PRE> <p>Document used by the iterator.</p> <P></P><BR/><BR/>
<A NAME=DomIterator.prototype.applyValue></A>
<H2> Method DomIterator.prototype.applyValue</H2><PRE>DomIterator.prototype.applyValue = function(id, value, replaceOld)</PRE> <p>Search for an element on a document and change its value.</p> <P><TABLE WIDTH="90%" BORDER=1><TR BGCOLOR=#BDB3C4><TD><B>Parameter</B></TD><TD><B>Description</B></TD></TR><TR><TD><I>id</I></TD><TD>DOM element id attribute value. </TD></TR><TR><TD><I>value</I></TD><TD>Value to be applied on element. </TD></TR><TR><TD><I>replaceOld</I></TD><TD>Flag used to determine if the value must be concatenated to the 		old value or if the value must replace the old value.</TD></TR></TABLE></P><BR/><BR/>
<A NAME=DomIterator.prototype.getFormById></A>
<H2> Method DomIterator.prototype.getFormById</H2><PRE>DomIterator.prototype.getFormById = function(formId)</PRE> <p>Search a form in the document, using the form id attribute as search key.</p> <P><TABLE WIDTH="90%" BORDER=1><TR BGCOLOR=#BDB3C4><TD><B>Parameter</B></TD><TD><B>Description</B></TD></TR><TR><TD><I>formId</I></TD><TD><code>HTMLForm</code> id attribute value. </TD></TR></TABLE><DL><DT><B>Returns:</B></DT><DD><code>HTMLForm</code> instance recovered.</DD></DL></P><BR/><BR/>
<A NAME=DomIterator.prototype.getFormByName></A>
<H2> Method DomIterator.prototype.getFormByName</H2><PRE>DomIterator.prototype.getFormByName = function(formName)</PRE> <p>Search a form in the document, using the form name attribute as search key.</p> <P><TABLE WIDTH="90%" BORDER=1><TR BGCOLOR=#BDB3C4><TD><B>Parameter</B></TD><TD><B>Description</B></TD></TR><TR><TD><I>formName</I></TD><TD><code>HTMLForm</code> name attribute value. </TD></TR></TABLE><DL><DT><B>Returns:</B></DT><DD><code>HTMLForm</code> instance recovered.</DD></DL></P><BR/><BR/>
</BODY></HTML>
